import request from '@/utils/request'

// 查询入住预约列表
export function listCheckInReservation(query) {
  return request({
    url: '/pg/checkInReservation/list',
    method: 'get',
    params: query
  })
}

// 查询入住预约所有列表
export function listAllCheckInReservation(query) {
  return request({
    url: '/pg/checkInReservation/listAll',
    method: 'get',
    params: query
  })
}

// 查询入住预约详细
export function getCheckInReservation(id) {
  return request({
    url: '/pg/checkInReservation/' + id,
    method: 'get'
  })
}

// 新增入住预约
export function addCheckInReservation(data) {
  return request({
    url: '/pg/checkInReservation',
    method: 'post',
    data: data
  })
}

// 修改入住预约
export function updateCheckInReservation(data) {
  return request({
    url: '/pg/checkInReservation',
    method: 'put',
    data: data
  })
}

// 删除入住预约
export function delCheckInReservation(id) {
  return request({
    url: '/pg/checkInReservation/' + id,
    method: 'delete'
  })
}
